< previous page page_914 next page >

Page 914
Compiling and Testing SQL-VB5
All you need to do now is compile the program as an executable and you're done. But first, let's run a test script through the system to make sure all is working properly. You run this test by starting SQL-VB5 from within Visual Basic. If all goes well, you create a final compiled version that runs faster.
Go ahead and run the application. The first test script is called SQLVB01.SQV. You can find it in the ChapXA\Scripts folder on the CD. This script contains a set of lines that open a database and then create several result sets to display. Before you run the first script, you should load it for editing and make sure the drive letter and path are correct for your desktop setup. To load the SQL script file, select File | Edit. This brings up the Open File dialog. Locate the SQLVB01.SQV script file in the TYSDBVB\SQLVB directory on your machine (see Figure A.5).
0914-01.jpg
Figure A.5.
Testing the 
SQLVB01.SQV script.
When the file is loaded into Notepad, inspect the script line that opens the database file. Make sure the path and drive letters match your desktop setup (see Figure A.6).
Make any changes needed and exit Notepad. Make sure you save the script if you made any updates. Now you are ready to run the script.
To run the script, select File | Run and use the File Open dialog box to locate the SQLVB01.SQV script file. Once you select the file, the program automatically begins processing the script. The line at the bottom of the screen shows the script lines as they are processed. The

 
< previous page page_914 next page >

If you like this book, buy it!